package org.spice.servlet.tags;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.TagSupport;
import javax.servlet.jsp.tagext.TryCatchFinally;

public abstract
class BaseTag extends TagSupport implements TryCatchFinally{

	
	public abstract
	int writeTag(final PageContext pageContext);
	
	@Override
	public 
	int doStartTag() throws JspException {
		return writeTag(this.pageContext);
	}
	
	
	
	private static final long serialVersionUID = 1L;

	@Override
	public 
	void doCatch(Throwable t) throws Throwable {
		
	}

	@Override
	public 
	void doFinally() {
		
	}

}
